<!DOCTYPE html>
<html>
	<head>
		<title>Pasting Items' Titles</title>
		<link rel="stylesheet" href="../../../codebase/webix.css" type="text/css" charset="utf-8">
		<script src="../../../codebase/webix.js" type="text/javascript" charset="utf-8"></script>

		<link rel="stylesheet" type="text/css" href="../common/samples.css">
	</head>
	<body>
		<div class='header_comment'>Pasting items titles</div>
		<div class='sample_comment'>Press CTRL+C to copy the text in the textarea. Then, select some node in DataTree and press Ctrl+V</div>
		<div id="testA" style='width:250px; height:250px; float:left'></div>
		<textarea onblur="this.value=''" style="margin: 10px; width: 200px; height: 120px;">New item name</textarea>
			
		
		<script type="text/javascript" charset="utf-8">

		webix.ready(function(){

			tree1 = webix.ui({
				container:"testA",
				view:"tree",
				select: true,
				clipboard: "modify",

				data: [
					{ id:"1", open:true, value:"The Shawshank Redemption", data:[
						{ id:"1.1", value:"Part 1" },
						{ id:"1.2", value:"Part 2" },
						{ id:"1.3", value:"Part 3" }
					]},
					{ id:"2", value:"The Godfather", data:[
						{ id:"2.1", value:"Part 1" },
						{ id:"2.2", value:"Part 2" }
					]}
				]
			});	
		});
		</script>
	</body>
</html>